import service from '../request';

const controller="TransferInfo"

function query (data:any):any{
    return service({
        method:'get',
        url:controller,
        params:data
    });
}

function getApproval(data:any):any{
    return service({
        method:'get',
        url:controller+"/getApproval",
        params:data
    });
}

function add(data:any):any{
    return service({
        method:'post',
        url:controller,
        data
    });
}

function send(typeCode:number,procedureId:number){
    return service({
        method:'post',
        url:controller+"/send",
        params:{typeCode,procedureId}
    });
}

function approval(data:any){
    return service({
        method:'post',
        url:controller+'/approval',
        data
    });
}
// function tranUpdate(data:any){
// 	return service({
// 		method:"PUT",
// 		url:controller+'/TranUpdate',
// 		data
// 	})
// }
export default{
    query,
    add,
    send,
    approval,
    getApproval,
	// tranUpdate
}